// 用户相关信息

/**
 * 用户基本信息
 */
class TbUser {
  uid: number | null = null
  username: string | null = null
  password: string | null = null
  salt: string | null = null
  accessId: number | null = null
  accessKey: number | null = null
  role: string | null = null
  deleted: string | null = null
  lastupdate: string | null = null

  constructor() {}
}

/**
 * 用户附加信息
 */
class TbUserInfo {
  nickname: string | null = null
  sex: string | null = null
  email: number | null = null
  phone: string | null = null
  qq: string | null = null
  wechat: string | null = null
  img: string | null = null
  info: string | null = null
  cipher: string | null = null
  lastupdate: string | null=null 
  uid: number | null = null
  constructor() {}
}

class TbRole {
  rid: number | null = null
  roleName: string | null = null
  roleInfo: number | null = null
  deleted: number | null = null
}

class UserInfo{
  TbUser: TbUser = new TbUser();
  TbUserInfo: TbUserInfo = new TbUserInfo();
  TbRole: TbRole = new TbRole();
  constructor() {}
}

export { TbUser as default, TbUser as TbUser, TbUserInfo as TbUserInfo ,TbRole as TbRole, UserInfo as UserInfo}
